package com.swt.testdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swt.testdemo.config.ResponseBean;
import com.swt.testdemo.config.ResponseMessage;
import com.swt.testdemo.entity.SysDataTemplateEntity;
import com.swt.testdemo.form.CreateDataTemplateForm;
import com.swt.testdemo.form.EditDataTemplateForm;
import com.swt.testdemo.form.QueryDataSourceForm;
import com.swt.testdemo.form.QueryDataTemplateForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/12 17:32
 **/
public interface SysDataTemplateService extends IService<SysDataTemplateEntity>  {


    ResponseBean listDataTemplate(QueryDataTemplateForm form);

    ResponseBean getDataTemplateInfo(Integer dataTemplateId);

    ResponseMessage downloadDataTemplate(HttpServletRequest request, HttpServletResponse response, Integer dataTemplateId);

    ResponseBean createDataTemplate(CreateDataTemplateForm form);


    ResponseBean editDataTemplate(EditDataTemplateForm form);

    ResponseMessage deleteDataTemplate(Integer dataTemplateId);

    ResponseBean getDataSourceList(QueryDataSourceForm form);
}
